package com.lotterymanage.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.lotterymanage.dao.TreeDao;
import com.lotterymanage.domain.InsideUser;
import com.lotterymanage.domain.Tree;

/**
 * 目录dao实现类.
 * @author lxz
 * @date Apr 21, 2010
 */
@Repository("treeDao")
public class TreeDaoImpl extends AbstractDaoImpl implements TreeDao {

    /**
     * 按递归的方式显示目录.
     * @param insideUser InsideUser
     * @return list
     */
    @SuppressWarnings("unchecked")
    public List<Tree> getInsideUserTree(final InsideUser insideUser) {
        return (List<Tree>) this.getSqlMapClientTemplate().queryForList("GET-INSIDEUSER-TREE", insideUser);
    }
}
